Skip to content

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public WindowedLiveQuery<T> Take(int count)

  2. public WindowedLiveQuery<T> Take(IObservable<int> count)

1. Overload

public WindowedLiveQuery<T> Take(int count)

View source (opens in a new tab)

Summary: Exposes only the first items.

Parameters

NameTypeDescription
countint (opens in a new tab)The most items to expose.

Returns: WindowedLiveQuery -- The windowed query.

2. Overload

public WindowedLiveQuery<T> Take(IObservable<int> count)

View source (opens in a new tab)

Summary: Exposes only the first items, with a count that can change over time.

Parameters

NameTypeDescription
countIObservable (opens in a new tab)An observable of the most items to expose. The view is empty until it emits, and negative values count as zero.

Returns: WindowedLiveQuery -- The windowed query.